<?php
/**
 * This file belongs to huakaili project
 *
 * @author jszhang
 */
?>


       	  <div class="right_bar">
       	  	<?php
		if( $errmsg->size('basic_info') > 0 ) $errmsg->output('basic_info');
		?>
            	<div class="orange_box">
                	
                    <div class="orange_middle">
                    	<div class="orange_title">
                        	<h1>基本信息</h1>
                        </div>
                        
                    </div>
                    
					<div class="basicInfo_box">
					
					<form id="basicInfoForm" method="POST" action="<?php echo edp_href_link(PAGENAME_USER_SETTING,'subpage=basic_info'); ?>">
						<input type="hidden" name="action" value="basic_info" >
						<input type="hidden" name="id" value="<?php echoPageVar($pageVars, "id")?>" >
						<input type="hidden" name="nick" value="<?php echoPageVar($pageVars, "nick")?>" >
						<input type="hidden" name="logo_path" value="<?php echoPageVar($pageVars, "logo_path")?>" >
						<input type="hidden" id="province" name="province" value="<?php echoPageVar($pageVars, "province")?>" >
						<input type="hidden" id="city" name="city" value="<?php echoPageVar($pageVars, "city")?>" >
					
                    	<div class="basicInfo_item">
							 <dd><label>昵称</label><input type="text" value="<?php echoPageVar($pageVars, "nick")?>" disabled /></dd>							    
							 <dd><label>头像</label>
							     <?php if( !isset($pageVars['logo_path']) || edp_is_empty_string(trim($pageVars['logo_path'])) ){ ?>
							    	 <img src="<?php echo DEFAULT_AVATAR_URL; ?>" alt="用户头像" />
									 <a href="<?php echo edp_href_link(PAGENAME_USER_SETTING, "subpage=change_avatar")?>">添加头像</a>  <font color="red">(首次上传头像，可以获得10点E币!)</font>  <a target="_blank" class="gray_hint" href="http://www.huakaili.com/help/?subpage=303">E币有什么用?</a>
								 <?php }else{ ?>
									 <img src="<?php echo EdpGetAvatarUrl($pageVars['logo_path']); ?>" alt="用户头像" />
									<a href="<?php echo edp_href_link(PAGENAME_USER_SETTING, "subpage=change_avatar")?>">更换头像</a>
								 <?php } ?>	 
						 
							 </dd>                        	
                             
							 <dd><label>现居地</label> 						
							 	<select id="selprovince">
									<option>选择省份</option>
								</select>
								省/市
								<select id="selcity">
									<option>选择城市</option>
								</select>
								市
							</dd>
						
							 <dd><label>自我介绍<span style="color: grey; display:block;">可输入300字</span></label>
								 <textarea name="introduction" cols="1" rows="3" ><?php echoPageVar($pageVars, "introduction")?></textarea>
								 
							 </dd>
							 <dt><input value="确定" type="submit" class="pagesubmit" /></dt>
							 </div>
                    </div>                         
                  
                </div>
            	
              
            </div>





